import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    chartType: '', // 显示不同的legendBarShow，如柱状图和饼图的样式就不同
    fileNum: 0, // 上传文件的数目
    fileInfo: [], // 存储所用上传的文件信息
    singleFile: { date: '1', info: null }, // date:监视更新 info存放单个文件信息（向图形组件传递数据）
    chartTitle: { id: '', text: '', titleAcross: '', titleVertical: '', wordFamily: '', wordSize: '', titleColor: '' },
    histogramLegend: { barWidth: '60', yName: '单位', backgroundColor: '', postColor: '', postRadius: '', labColor: '', labSize: '' },
    lineLegend: { yName: '单位', backgroundColor: '', labColor: '', labSize: '', lineColor: '', pointSize: '', borderColor: '', crossStyle: '#e64641' },
    pieLegend: { backgroundColor: '', lineColor: '', length1: '', length2: '', labColor: '', labSize: '' },
    scatterLegend: { backgroundColor: '', labColor: '', labSize: '', symbolSize: '', symbol: '', color: '' },
    funnelLegend: { backgroundColor: '', labSize: '', borderWidth: '', length: '', width: 80, sort: 'descending' },
    cubeScatterLegend: { backgroundColor: '', labColor: '', labSize: '', pointColor: '', pointSize: '', pointType: '', shadowColor: '' },
    treeLegend: { symbolSize: '', pointColor: '', layout: '', edgeShape: '', fontSize: '', color: '', backgroundColor: '' },
    radarLegend: { backgroundColor: '', shape: 'polygon', color: '#000', fontSize: 8, splitLineColor: '', dataLineColor: '', lineType: '' },
    grid: { isShowX: true, isShowY: true, lineColorX: '#c6c5ca', lineColorY: '#c6c5ca', lineTypeX: 'solid', lineTypeY: 'solid', lineWidthX: '1', lineWidthY: '1', isShowZ: true, lineColorZ: '#c6c5ca', lineWidthZ: '1' },
    relationLegend: { backgroundColor: '#EFEBE3', draggable: true, symbolSize: 50, pointColor: '#d2dde6', fontSize: 20, worldColor: '#000', edgeSize: 20, lineColor: '#000', lineWidth: 1 }
  },

  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
